package com.xx.happychatboot.serve.room.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import io.mybatis.provider.Entity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 群成员表
 * </p>
 *
 * @author xiaoXuan
 * @since 2025-01-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity.Table("group_member")
public class GroupMember implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Entity.Column(id = true, remark = "主键", updatable = false, insertable = false)
    private Long id;

    /**
     * 群组id
     */
    @Entity.Column("group_id")
    private Long groupId;

    /**
     * 成员uid
     */
    @Entity.Column("uid")
    private Long uid;

    /**
     * 成员角色 1群主 2管理员 3普通成员
     */
    @Entity.Column("role")
    private Integer role;

    /**
     * 创建时间
     */
    @Entity.Column("create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @Entity.Column("update_time")
    private Date updateTime;


}
